package com.mlistool;

import java.io.File;
import java.io.IOException;

import org.apache.commons.io.FileUtils;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.parser.Parser;
import org.jsoup.parser.XmlTreeBuilder;

public class XMLParser {
	Document xmlDocument;
	public XMLParser(File file) {
		try {
			xmlDocument = Jsoup.parse(FileUtils.readFileToString(file, "UTF-8"),
					"UTF-8", new Parser(new XmlTreeBuilder()));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	

	}

}
